export const tableComponentConfig = {
  removeButton: () =>
    import('@/views/purchase-demand/components/tableComp/removeButton.vue'),
};

export const tableRenderConfig = {
  baseNo: { title: '基线序号', dataIndex: 'baseNo', width: 120 },
  requireNo1: { title: '配套单号', dataIndex: 'requireNo', width: 120 },
  materialCode1: { title: '物料编码', dataIndex: 'materialCode', width: 120 },
  categoryLv3Id: { title: '品类名称', dataIndex: 'categoryLv3Id', width: 120 },
  millTypeCode: { title: '机型', dataIndex: 'millTypeCode', width: 100 },
  batchNo: { title: '批次', dataIndex: 'batchNo', width: 100 },
  manufactureLotNo1: {
    title: '架次',
    dataIndex: 'manufactureLotNo',
    width: 100,
  },
  checkState1: { title: '检验结果', dataIndex: 'checkStateName', width: 120 },
  purchaseState: {
    title: '是否采购',
    dataIndex: 'purchaseStateName',
    width: 100,
  },
  requireSourceType: {
    title: '需求来源',
    dataIndex: 'requireSourceTypeName',
    width: 100,
  },
  picNo1: { title: '图号', dataIndex: 'picNo', width: 120 },
  useDeptName1: { title: '使用单位', dataIndex: 'useDeptName', width: 150 },
  requireDateStart: {
    title: '需求时间（起）',
    dataIndex: 'requireDateStart',
    width: 150,
  },
  requireDateEnd: {
    title: '需求时间（止）',
    dataIndex: 'requireDateEnd',
    width: 150,
  },
  categoryLv1Name: {
    title: '一级品类',
    dataIndex: 'categoryLv1Name',
    width: 150,
  },
  categoryLv2Name: {
    title: '二级品类',
    dataIndex: 'categoryLv2Name',
    width: 150,
  },
  categoryLv3Name: {
    title: '三级品类',
    dataIndex: 'categoryLv3Name',
    width: 150,
  },
  machineContent: {
    title: '加工内容',
    dataIndex: 'machineContent',
    width: 150,
  },
  outSourceDeptName: {
    title: '外包提出单位',
    dataIndex: 'outSourceDeptName',
    width: 150,
  },
  requireDispatchDateStart: {
    title: '需求下达时间（起）',
    dataIndex: 'requireDispatchDateStart',
    width: 150,
  },
  requireDispatchDateEnd: {
    title: '需求下达时间（止）',
    dataIndex: 'requireDispatchDateEnd',
    width: 150,
  },
  requireNo2: {
    title: '配套单号/采购需求计划编号',
    dataIndex: 'requireNo',
    width: 210,
  },
  originalOrderForm1: {
    title: '原始单据表名',
    dataIndex: 'originalOrderForm',
    width: 150,
  },
  manufactureLotNo: {
    title: '架次/台份',
    dataIndex: 'manufactureLotNo',
    width: 150,
  },
  productTypeNo1: { title: '型号', dataIndex: 'productTypeNo', width: 150 },
  supplierName1: { title: '供应商', dataIndex: 'supplierName', width: 150 },
  productSuperTypeNo: {
    title: '成品父型号',
    dataIndex: 'productSuperTypeNo',
    width: 150,
  },
  substanceBrand1: { title: '牌号', dataIndex: 'substanceBrand', width: 150 },
  specification: { title: '规格', dataIndex: 'specification', width: 150 },
  manufactureType: {
    title: '制造类型',
    dataIndex: 'manufactureTypeName',
    width: 150,
  },
  requireNo: { title: '采购需求计划编号', dataIndex: 'requireNo', width: 150 },
  divideRoute1: {
    title: '分工路线',
    dataIndex: 'divideRoute',
    width: 150,
  },
  secretLevel: {
    title: '密级',
    dataIndex: 'secretLevel',
    componentName: 'secretLevel',
    width: 150,
  },
  materialCode3: {
    title: '标准件编码',
    dataIndex: 'materialCode',
    width: 150,
  },
  materialName1: { title: '物料名称', dataIndex: 'materialName', width: 150 },
  technicalCondition: {
    title: '技术条件',
    dataIndex: 'technicalCondition',
    width: 150,
  },
  originalOrderForm: {
    title: '原始单据表单',
    dataIndex: 'originalOrderForm',
    width: 150,
  },
  assemblyPartPicNo: {
    title: '装配件图号',
    dataIndex: 'assemblyPartPicNo',
    width: 150,
  },
  standardPartPicNo: {
    title: '标准件图号',
    dataIndex: 'standardPartPicNo',
    width: 150,
  },
  measureUnit1: {
    title: '基本计量单位',
    dataIndex: 'measureUnitName',
    width: 150,
  },
  useDeptCode: { title: '使用单位代码', dataIndex: 'useDeptCode', width: 180 },
  useDeptName2: { title: '使用单位名称', dataIndex: 'useDeptName', width: 150 },
  requireQty: { title: '需求数量', dataIndex: 'requireQty', width: 150 },
  requireDate: { title: '需求日期', dataIndex: 'requireDate', width: 180 },
  surfaceTreatment: {
    title: '表面处理',
    dataIndex: 'surfaceTreatment',
    width: 150,
  },
  customerType: {
    title: '客户类型',
    dataIndex: 'customerType',
    width: 150,
  },
  jobNo: { title: '任务编号', dataIndex: 'jobNo', width: 150 },
  processStatusNo: {
    title: '工艺状态号',
    dataIndex: 'processStatusNo',
    width: 150,
  },
  processRoute: { title: '工艺路线', dataIndex: 'processRoute', width: 150 },
  productForm: { title: '产品型式', dataIndex: 'productForm', width: 150 },
  dispatchUserName: {
    title: '生产计划员（下达人）',
    dataIndex: 'dispatchUserName',
    width: 180,
  },
  requireDispatchDate: {
    title: '需求下达时间',
    dataIndex: 'requireDispatchDate',
    width: 150,
  },
  dispatchBasis: { title: '下达依据', dataIndex: 'dispatchBasis', width: 150 },
  requireType: { title: '需求类型', dataIndex: 'requireType', width: 150 },
  checkState2: { title: '校验结果', dataIndex: 'checkStateName', width: 150 },
  checkMsg1: { title: '校验问题描述', dataIndex: 'checkMsg', width: 150 },
  applyReason: { title: '申请理由', dataIndex: 'applyReason', width: 150 },
  remark: { title: '备注', dataIndex: 'remark', width: 150 },
  segmentPicNo: { title: '段位图号', dataIndex: 'segmentPicNo', width: 150 },
  transcodeMachineNo: {
    title: '转码机型',
    dataIndex: 'transcodeMachineNo',
    width: 150,
  },
  transcodePicNo: {
    title: '转码图号',
    dataIndex: 'transcodePicNo',
    width: 150,
  },
  feedbackRequireDate: {
    title: '专业厂反馈的需求日期',
    dataIndex: 'feedbackRequireDate',
    width: 180,
  },
  closeQty: { title: '关闭数量', dataIndex: 'closeQty', width: 150 },
  deliveryQty: { title: '已出库数量', dataIndex: 'deliveryQty', width: 150 },
  provideState: { title: '发放状态', dataIndex: 'provideState', width: 150 },
  closeState: { title: '关闭状态', dataIndex: 'closeStateName', width: 150 },
  confirmUserCode: {
    title: '需求确认人编号',
    dataIndex: 'confirmUserCode',
    width: 150,
  },
  confirmUserName: {
    title: '需求确认人',
    dataIndex: 'confirmUserName',
    width: 150,
  },
  confirmDate: { title: '需求确认时间', dataIndex: 'confirmDate', width: 180 },
  changeRecord: { title: '变更记录', dataIndex: 'changeRecord', width: 150 },
  manualCloseState: {
    title: '手动关闭',
    dataIndex: 'manualCloseStateName',
    width: 150,
  },
  manualCloseCause: {
    title: '手动关闭原因',
    dataIndex: 'manualCloseCause',
    width: 150,
  },
  closeUserName: {
    title: '手动关闭用户',
    dataIndex: 'closeUserName',
    width: 150,
  },
  closeDate: { title: '手动关闭时间', dataIndex: 'closeDate', width: 150 },
  orderNo: { title: '订单号', dataIndex: 'orderNo', width: 150 },
  levelCode: { title: '层次码', dataIndex: 'levelCode', width: 150 },
  productTypeNo: { title: '成品型号', dataIndex: 'productTypeNo', width: 150 },
  stateCode: { title: '状态标识码', dataIndex: 'stateCode', width: 150 },
  divideRoute: {
    title: '成品分工路线',
    dataIndex: 'divideRoute',
    width: 150,
  },
  materielLevelCode: {
    title: '物料层次编码',
    dataIndex: 'materielLevelCode',
    width: 150,
  },
  contractNo: { title: '合同号', dataIndex: 'contractNo', width: 150 },
  materialGrade: { title: '物料层级', dataIndex: 'materialGrade', width: 150 },
  makeDeptName1: { title: '承制单位', dataIndex: 'makeDeptName', width: 150 },
  technicalAgreement: {
    title: '技术协议',
    dataIndex: 'technicalAgreement',
    width: 150,
  },
  productType: { title: '成品类型', dataIndex: 'productType', width: 150 },
  beginMakeState: {
    title: '初始研制状态',
    dataIndex: 'beginMakeState',
    width: 150,
  },
  virtualState: {
    title: '是否虚拟件',
    dataIndex: 'virtualStateName',
    width: 150,
  },
  measureUnit: {
    title: '计量单位',
    dataIndex: 'measureUnitName',
    width: 150,
  },
  planStartDate: {
    title: '计划开工日期',
    dataIndex: 'planStartDate',
    width: 150,
  },
  planEndDate: { title: '计划完工日期', dataIndex: 'planEndDate', width: 150 },
  supplierCode: { title: '供应商编码', dataIndex: 'supplierCode', width: 150 },
  supplierName: { title: '供应商名称', dataIndex: 'supplierName', width: 150 },
  // checkMsg2: { title: '体验问题描述', dataIndex: 'checkMsg', width: 150 },
  useDeptName: { title: '使用部门', dataIndex: 'useDeptName', width: 150 },
  backQty: { title: '退库数量', dataIndex: 'backQty', width: 150 },
  checkMsg: { title: '检验问题描述', dataIndex: 'checkMsg', width: 150 },
  materialCode2: { title: '材料编码', dataIndex: 'materialCode', width: 150 },
  materialName2: {
    title: '材料中文名称',
    dataIndex: 'materialName',
    width: 150,
  },
  unitPicNo: { title: '零部件图号', dataIndex: 'unitPicNo', width: 150 },
  supplyState1: { title: '供应状态', dataIndex: 'supplyState', width: 150 },
  substanceSize: { title: '材料尺寸', dataIndex: 'substanceSize', width: 150 },
  checkState: { title: '校验结果', dataIndex: 'checkStateName', width: 150 },
  extraTechnicalCondition: {
    title: '附加技术条件描述',
    dataIndex: 'extraTechnicalCondition',
    width: 150,
  },
  extraQty: { title: '额外数量', dataIndex: 'extraQty', width: 150 },
  requireAllQty: { title: '总需求数', dataIndex: 'requireAllQty', width: 150 },
  planEarliestStartDate: {
    title: '最早计划开工日期',
    dataIndex: 'planEarliestStartDate',
    width: 150,
  },
  planEarliestEndDate: {
    title: '最早计划完工日期',
    dataIndex: 'planEarliestEndDate',
    width: 150,
  },
  partNo1: { title: '版本', dataIndex: 'partNo', width: 150 },
  singleMachineQty: {
    title: '单机数量',
    dataIndex: 'singleMachineQty',
    width: 150,
  },
  makeDeptName: { title: '制造单位', dataIndex: 'makeDeptName', width: 150 },
  backSign: { title: '回头标志', dataIndex: 'backSign', width: 150 },
  planState: { title: '计划执行状态', dataIndex: 'planState', width: 150 },
  purchaseUserName: {
    title: '采购计划员',
    dataIndex: 'purchaseUserName',
    width: 150,
  },
  planReceiveDate: {
    title: '计划接收日期',
    dataIndex: 'planReceiveDate',
    width: 150,
  },
  materialCode: { title: '锻铸件编码', dataIndex: 'materialCode', width: 150 },
  materialName: { title: '锻铸件名称', dataIndex: 'materialName', width: 150 },
  picNo: { title: '锻铸件图号', dataIndex: 'picNo', width: 150 },
  partPicNo: { title: '零件图号', dataIndex: 'partPicNo', width: 150 },
  materialType: { title: '锻铸件类型', dataIndex: 'materialType', width: 150 },
  supplyState: {
    title: '锻铸件供应状态',
    dataIndex: 'supplyState',
    width: 150,
  },
  tagExample: { title: '标记示例', dataIndex: 'tagExample', width: 150 },
  partQty: { title: '包含的零件个数', dataIndex: 'partQty', width: 150 },
  supplierName2: { title: '制造商', dataIndex: 'supplierName', width: 150 },
  partName: { title: '零件名称', dataIndex: 'partName', width: 150 },
  thermalProcess: {
    title: '产研主管热工艺',
    dataIndex: 'thermalProcess',
    width: 150,
  },
  machineType: { title: '加工类型', dataIndex: 'machineType', width: 150 },
  applyUserCode: {
    title: '申请人代码',
    dataIndex: 'applyUserCode',
    width: 150,
  },
  applyUserName: {
    title: '申请人名称',
    dataIndex: 'applyUserName',
    width: 150,
  },
  requireAuditDate: {
    title: '需求批准日期',
    dataIndex: 'requireAuditDate',
    width: 150,
  },
  importanceState: {
    title: '关重件属性',
    dataIndex: 'importanceState',
    width: 150,
  },
  fixedInspectionState: {
    title: '是否军代表固定检验项',
    dataIndex: 'fixedInspectionStateName',
    width: 150,
  },
  superviseState: {
    title: '是否监管项',
    dataIndex: 'superviseStateName',
    width: 150,
  },
  workwearState: {
    title: '是否提供工装',
    dataIndex: 'workwearStateName',
    width: 150,
  },
  substanceState: {
    title: '是否提供材料',
    dataIndex: 'substanceStateName',
    width: 150,
  },
  substanceType: { title: '材料类型', dataIndex: 'substanceType', width: 150 },
  substanceBrand: {
    title: '材料牌号',
    dataIndex: 'substanceBrand',
    width: 150,
  },
  grossWeight: { title: '毛料重量', dataIndex: 'grossWeight', width: 150 },
  wasteWeight: { title: '回收废料重量', dataIndex: 'wasteWeight', width: 150 },
  partNo: { title: '零部件版本号', dataIndex: 'partNo', width: 150 },
  applyDeptName1: { title: '申请单位', dataIndex: 'applyDeptName', width: 150 },
  planType: { title: '计划类型', dataIndex: 'planTypeName', width: 150 },
  picNoExternalCode: {
    title: '图号外协码',
    dataIndex: 'picNoExternalCode',
    width: 150,
  },
  machineNoExternalCode: {
    title: '机型外协码',
    dataIndex: 'machineNoExternalCode',
    width: 150,
  },
  applyDeptCode: {
    title: '申请单位代码',
    dataIndex: 'applyDeptCode',
    width: 150,
  },
  applyDeptName: {
    title: '申请单位名称',
    dataIndex: 'applyDeptName',
    width: 150,
  },
  substanceRemark: {
    title: '材料定额备注',
    dataIndex: 'substanceRemark',
    width: 150,
  },

  remove: {
    title: '选项',
    dataIndex: 'remove',
    componentName: 'removeButton',
  },
  operate: {
    title: '操作',
    dataIndex: 'operate',
    slotName: 'operate',
    fixed: 'right',
    width: 250,
  },
};
